﻿@model AutomatedTestDataManagement.Models.TestSuite

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>TestSuite</legend>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.SuiteID)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SuiteID)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.SuiteName)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SuiteName)
    </div>

    <div class="display-label">
         @Html.DisplayNameFor(model => model.SuiteDescription)
    </div>
    <div class="display-field">
        @Html.DisplayFor(model => model.SuiteDescription)
    </div>
   <div class="display-label">@Html.LabelFor(model => model.TestSuiteScenarios)</div>
   <div class="display-field">
       <table>
           <tr>
               <th>Scenario Name</th>
               <th>Scenario Description</th>
               <th>Order In Suite</th>
           </tr>
           @foreach (var item in Model.TestSuiteScenarios)
           {
               <tr>
                   <td>
                       @Html.DisplayFor(modelItem => item.TestScenario.ScenarioName)
                   </td>
                   <td>
                       @Html.DisplayFor(modelItem => item.TestScenario.ScenarioDescription)
                   </td>
                   <td>
                       @Html.DisplayFor(modelItem => item.ScenarioNumber)
                   </td>
               </tr>
           }
       </table>
   </div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.SuiteID }) |
    @Html.ActionLink("Back to List", "Index")
</p>
